Hi Ray,
The function call EnableRS232Cmds(BAUD) does all the necessary configuration of the UART and FIFO buffering routines and sets DoRS232Cmds=TRUE to allow serial incoming Console Script Commands to be automatically processed by KFLOP (USB IO is no longer serviced). To do the Configuration but not switch to accepting Commands from RS232 reset the flag after the call.
Regards
TK
Group: DynoMotion |
Message: 13477 |
From: gyelle10 |
Date: 7/6/2016 |
Subject: Re: KFlop Serial Port |
Hi Tom,
I'm not sure how to use the serial communication with UART. I've browsed the forum and I didn't find any answer.
Does this program allows serial incoming Console Script Commands to be automatically processed by KFLOP ?
#include "KMotionDef.h"
main() { EnableRS232Cmds(RS232_BAUD_38400); DoRS232Cmds = TRUE; }
I tried it and when I sent : Execute4 , it returned me Execute4, but did not execute my thread 4... (It executed when I called Execute4 in the console previously).
GY
|
|
Group: DynoMotion |
Message: 13479 |
From: Tom Kerekes |
Date: 7/6/2016 |
Subject: Re: KFlop Serial Port |
Hi GY,
Did terminate with CR + LF?
Maybe try a simpler command like ClearBit46 to see if the KFLOP
LED goes off.
Regards
TK
Hi Tom,
I'm not sure how to use the serial communication with
UART. I've browsed the forum and I didn't find any answer.
Does this program allows serial incoming
Console Script Commands to be automatically processed
by KFLOP ?
#include "KMotionDef.h"
main()
{
EnableRS232Cmds(RS232_BAUD_38400);
DoRS232Cmds
= TRUE;
}
I tried it and when I
sent : Execute4 , it returned me Execute4, but did not execute my
thread 4... (It executed when I called Execute4 in the console
previously).
GY
|
|
Group: DynoMotion |
Message: 13482 |
From: gyelle10 |
Date: 7/6/2016 |
Subject: Re: KFlop Serial Port |
Hi Tom,
It does the same thing with ClearBit46, (the led didnt go off) and it returned me the command (ClearBit46). I don't know if it terminate with CRLF, I'm using Hercules to communicate with Kflop UART and my settings are the following :
Baud 38400 Data size : 8 Parity : none Handshake : OFF Mode : free
GY
On Wednesday, July 6, 2016 3:04 PM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi GY,
Did terminate with CR + LF?
Maybe try a simpler command like ClearBit46 to see if the KFLOP
LED goes off.
Regards
TK
Hi Tom,
I'm not sure how to use the serial communication with
UART. I've browsed the forum and I didn't find any answer.
Does this program allows serial incoming
Console Script Commands to be automatically processed
by KFLOP ?
#include "KMotionDef.h"
main()
{
EnableRS232Cmds(RS232_BAUD_38400);
DoRS232Cmds
= TRUE;
}
I tried it and when I
sent : Execute4 , it returned me Execute4, but did not execute my
thread 4... (It executed when I called Execute4 in the console
previously).
GY
|
|
Group: DynoMotion |
Message: 13483 |
From: Tom Kerekes |
Date: 7/6/2016 |
Subject: Re: KFlop Serial Port |
Hi GY,
Try typing CTRL-M CTRL-J (for CR LF).
Regards
TK
Hi
Tom,
It
does the same thing with ClearBit46,
(the
led didnt go off) and it returned me the command
(ClearBit46). I don't know if it terminate with
CRLF, I'm using Hercules to communicate with Kflop
UART and my settings are the following :
Baud
38400
Data size
: 8
Parity : none
Handshake : OFF
Mode : free
GY
Hi GY,
Did terminate with CR + LF?
Maybe try a simpler command like
ClearBit46 to see if the KFLOP LED
goes off.
Regards
TK
Hi Tom,
I'm not sure how to use the
serial communication with UART.
I've browsed the forum and I
didn't find any answer.
Does this program allows
serial incoming Console Script
Commands to be automatically
processed by KFLOP
?
#include "KMotionDef.h"
main()
{
EnableRS232Cmds(RS232_BAUD_38400);
DoRS232Cmds
= TRUE;
}
I
tried it and when I sent : Execute4 ,
it returned me Execute4, but
did not execute my thread 4...
(It executed when I called Execute4
in
the console previously).
GY
|
|
Group: DynoMotion |
Message: 13490 |
From: gyelle10 |
Date: 7/7/2016 |
Subject: Re: KFlop Serial Port |
Thanks Tom, it is what I needed ! I also can send : COMMAND followed by : <CR>.
GY
On Wednesday, July 6, 2016 4:37 PM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:
Hi GY,
Try typing CTRL-M CTRL-J (for CR LF).
Regards
TK
Hi
Tom,
It
does the same thing with ClearBit46,
(the
led didnt go off) and it returned me the command
(ClearBit46). I don't know if it terminate with
CRLF, I'm using Hercules to communicate with Kflop
UART and my settings are the following :
Baud
38400
Data size
: 8
Parity : none
Handshake : OFF
Mode : free
GY
Hi GY,
Did terminate with CR + LF?
Maybe try a simpler command like
ClearBit46 to see if the KFLOP LED
goes off.
Regards
TK
Hi Tom,
I'm not sure how to use the
serial communication with UART.
I've browsed the forum and I
didn't find any answer.
Does this program allows
serial incoming Console Script
Commands to be automatically
processed by KFLOP
?
#include "KMotionDef.h"
main()
{
EnableRS232Cmds(RS232_BAUD_38400);
DoRS232Cmds
= TRUE;
}
I
tried it and when I sent : Execute4 ,
it returned me Execute4, but
did not execute my thread 4...
(It executed when I called Execute4
in
the console previously).
GY
|
|
| |